Skip to content

feat: optional idempotency_key on create_episode - #23

Merged
smaramwbc merged 1 commit into
mainfrom
feat/idempotency-key
Jun 12, 2026
Merged

feat: optional idempotency_key on create_episode#23
smaramwbc merged 1 commit into
mainfrom
feat/idempotency-key

Conversation

@smaramwbc

Copy link
Copy Markdown
Owner

Surface the server's idempotency_key as a first-class parameter on create_episode (sync + async). Re-ingesting an episode with the same key (re-running a backfill, retrying a failed request) is a no-op — the server returns the existing episode instead of inserting a duplicate. create_episodes_batch already forwards the key when present in each episode dict. Omitted from the wire when unset, so the request shape is unchanged for callers that don't use it. Tests cover forward + omit.

Surface the server's idempotency_key as a first-class parameter on
create_episode (sync + async). Re-ingesting an episode with the same key
(re-running a backfill, retrying a failed request) is a no-op — the
server returns the existing episode instead of inserting a duplicate.
create_episodes_batch already forwards the key when present in each
episode dict (raw pass-through). Forwarded verbatim, omitted from the
wire when unset so the request shape is unchanged for callers that don't
use it. Tests cover forward + omit.
@smaramwbc
smaramwbc merged commit 2409d34 into main Jun 12, 2026
2 checks passed
@smaramwbc
smaramwbc deleted the feat/idempotency-key branch June 12, 2026 17:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant